
#ifndef __CRTSPDECODER_H__
#define  __CRTSPDECODER_H__

#include "CFFDecode.h"

#include "liveMedia.hh"
#include "BasicUsageEnvironment.hh"

#include <string>
#include<iostream>
using namespace std;


#define RTSP_CLIENT_VERBOSITY_LEVEL 1 

class CRTSPDecoder
{

public:
	CRTSPDecoder(string progName,string rtspURL);
	~CRTSPDecoder(void);

	void startRecvThread();
	void startDecodeThread();

	int openURL(UsageEnvironment& env, char const* progName, char const* rtspURL);
	CFFDecode* m_ffDecode;

public:
	static int rtspClientCount;

	
	string m_rtspURL;
private:
	HANDLE decodeThread;
	HANDLE recvThread; // for Camyu camera
	char eventLoopWatchVariable;

	string m_progName;
	

	RTSPClient* m_rtspClient;

	char* buf;

	

	
	

};






#endif